package org.csmzxy.class2333;

class MyRunnable01 implements Runnable{
    @Override
    public void run() {
        //循环输出当前线程的名称
        while (true){
            System.out.println(Thread.currentThread().getName()+":run()方法在运行");
            try {
                Thread.sleep(1000);
            }catch (InterruptedException e){
                e.printStackTrace();
            }
        }
    }
}